import { UserInfo } from "../types/user_type"

class Application {
  private static _localUserInfo: UserInfo | null = null
  private static _roomName: string | null = null

  static get localUserInfo () {
    return this._localUserInfo
  }
  static get roomName () {
    return this._roomName
  }

  static setUserInfo (userInfo: UserInfo | null) {
    this._localUserInfo = userInfo
  }
  static setRoomName (roomName: string | null) {
    this._roomName = roomName
  }
}

export default Application